﻿using NHibernate;
using NHibernate.Cfg;
using NHibernate.Dialect;
using NHibernate.Tool.hbm2ddl;

namespace Command.Commands
{
	public class UpgradeDatabaseCommand : BaseDatabaseCommand
	{
		public UpgradeDatabaseCommand(Configuration configuration, ISession session) : base(configuration, session) { }

		protected override string[] GenerateStatements(Configuration configuration, Dialect dialect, DatabaseMetadata metadata)
		{
			return configuration.GenerateSchemaUpdateScript(dialect, metadata);
		}
	}
}